package com.kele.shiro.mapper;

import com.kele.shiro.entity.Perms;
import com.kele.shiro.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author kele
 * @since 2022-10-24
 */

@Component
public interface UserMapper extends BaseMapper< User > {
	//根据用户名查询所有角色
	User findRolesByUserName(String username);
	//根据角色id查询权限集合
	List< Perms > findPermsByRoleId( String id);

}
